import MyHttp from "@/utils/myHttp";
import type { AxiosResponse } from "axios";
import { PlayListDetail, Privilege, PlayListSong } from "@/types/album";

const Http = new MyHttp({
  baseURL: "/api",
  timeout: 50000,
});

export function getPlayListTracks20(id: number | string): Promise<
  AxiosResponse<{
    code: number;
    songs: PlayListSong[];
    privileges: Privilege[];
  }>
> {
  return Http.request({
    url: "/playlist/track/all",
    method: "get",
    params: { limit: 100, id },
  });
}
